package com.bsoft.advance.client.transport;

import com.bsoft.advance.client.common.RequestMetadata;
import com.bsoft.advance.core.common.RpcResponse;
import com.bsoft.advance.core.protocol.MessageProtocol;
import io.netty.channel.Channel;

import java.net.InetSocketAddress;

public interface RpcRequestTransport {

    MessageProtocol<RpcResponse> send(RequestMetadata requestMetadata) throws Exception;

    Channel getChannel(InetSocketAddress socketAddress) throws Exception ;

}
